
import GeneticAlgorithm.Research;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Locale;

public class Main {

//    public static void main(String[] args) {
//
//        //GeneticAlgorithm geneticAlgorithm = new GeneticAlgorithm();
//        //geneticAlgorithm.run();
////        Research research = new Research();
////        research.researchIndividualChanges();
//        //research.run();
//        //research.researchPm();
//
//        float initialValue = Float.parseFloat(args[0]);
//        float step = Float.parseFloat(args[1]);
//        int howMany = Integer.parseInt(args[2]);
//
//        Research research = new Research(initialValue, step, howMany);
//
//        research.researchPm();
//        //research.researchGeneration();
//        //research.researchPopulation();
//
//    }
    //GENERATOR:
    public static void main(String[] args) throws IOException {

        File f = new File("paramsGAC.txt");
        BufferedWriter out = new BufferedWriter(new FileWriter(f));

        double init = 0.001;
        double step = 0.001;
        int howMany = 50;

        for (int i = 0; i < 10; i++) {

            try {
                out.write(String.format(Locale.ENGLISH, "%.6f %.6f %d", init, step, howMany));
                out.newLine();
            } catch (IOException ex) {
                System.out.println(ex);
            }

            init += howMany * step;

        }
        out.close();

    }

}
